package com.haoze.nurseapp.dao;

import com.haoze.common.mapper.MyMapper;
import com.haoze.nurseapp.model.NurseTeamDutyEntity;
import com.haoze.nurseapp.model.NurseTeamEntity;
import com.haoze.nurseapp.vo.NurseTeamDutyVo;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

public interface NurseTeamMapper extends MyMapper<NurseTeamEntity> {

    Integer findPositionByUser(@Param("userId") String userId);

    List<NurseTeamDutyVo> teamList(@Param("wardDeptId") String wardDeptId);

    List<NurseTeamDutyVo> nurseList(@Param("wardDeptId") String wardDeptId, @Param("teamId") String teamId);

    List<NurseTeamDutyVo> bedList(@Param("wardDeptId") String wardDeptId, @Param("teamId") String teamId);

    void deleteTamDutyList(@Param("teamId") String teamId);

    Integer insertNurseTeamDutyEntity(@Param("list")List<NurseTeamDutyEntity> list);

    Integer deleteTamList(@Param("teamId") String teamId);

    List<NurseTeamDutyVo> queryPatientList(@Param("userId") String userId, @Param("searchValue") String searchValue);

    List<NurseTeamDutyVo> queryAllPatientList(@Param("userId") String userId, @Param("wardDeptId") String wardDeptId, @Param("searchValue") String searchValue);

    Map<String, String> queryCriticalRecordStatusAndRes(@Param("patlabreportdataId") String patlabreportdataId);

    List<Map<String, String>> queryAllNurseList(@Param("inpatNum") String inpatNum);

    List<Map<String, String>> queryAllDoctorList(@Param("inpatNum") String inpatNum);

    List<Map<String, String>> queryAllUserList(@Param("inpatNum") String inpatNum);

    List<NurseTeamDutyVo> queryAllPatientForDoctList(@Param("userId") String userId, @Param("deptId") String deptId, String searchValue);

    List<NurseTeamDutyVo> queryPatientForDoctList(@Param("userId") String userId, String searchValue);

    String getNurseInfoByWardDeptId(@Param("wardDeptId") String wardDeptId);

    List<NurseTeamDutyVo> teamName(String teamId);
}
